<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/js-base64@3.6.0/base64.min.js"></script>

<script>
    var url = 'http://127.0.0.1:8100/doc/123.pdf'; //要预览文件的访问地址
    console.log("==========")
    window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(url)));
    console.log("222222222")
</script>
<body>
<h1>sdfsd</h1>

</body>


</html>
